//package com.wisely.xxboot.web;
//
//import com.wisely.xxboot.domain.Person;
//import com.wisely.xxboot.service.DemoService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * <p>Description:</p>
// * <p>Copyright: Copyright (c) 2017</p>
// * <p>Company: 中视数讯</p>
// * <p>Site: www.digi-zones.com</p>
// *
// * @author shengping
// * @version 1.0
// * @date 2017/6/29
// */
//@RestController
//public class MyController {
//
//    @Autowired
//    DemoService demoService;
//
//    @RequestMapping("/rollback")
//    public Person rollback(Person person){
//        return demoService.savePersonWithRollBack(person);
//    }
//
//    @RequestMapping("/norollback")
//    public Person norollback(Person person){
//        return demoService.savePersonWithoutRollBack(person);
//    }
//}
